﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Resources/Master.Master" AutoEventWireup="true" CodeBehind="RetrieveUser.aspx.cs" Inherits="Assignment_3.Feature___Users.RetrieveUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:Label ID="lblMessage" runat="server" Font-Bold="True"></asp:Label>

    <div style="margin-top: 20px; margin-left: 3%; margin-right: 3%">
        <h1>Users - Retrieve User</h1>

        <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></ajaxToolkit:ToolkitScriptManager>
        <asp:Label ID="lblText" runat="server" Text="Search for user by Username:"></asp:Label>&nbsp;
        <asp:TextBox ID="tbxSearch" runat="server"></asp:TextBox>
        <asp:Button ID="searchBtn" runat="server" Text="Search" OnClick="searchBtn_Click" />&nbsp;
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
            ErrorMessage="Username Required"
            Display="Dynamic"
            ControlToValidate="tbxSearch"
            Font-Bold="True"
            ForeColor="Red"></asp:RequiredFieldValidator>
        <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" 
            FilterType="UppercaseLetters, LowercaseLetters, Numbers" 
            TargetControlID="tbxSearch"></ajaxToolkit:FilteredTextBoxExtender>

        <div style="margin-top: 20px; margin-bottom: 20px">
            <hr />
        </div>

        <div id="Retrieve">

            <asp:Table ID="Table1" runat="server">
                <asp:TableRow>
                    <asp:TableCell Width="150px">
                        <asp:Label ID="Username" runat="server" Text="Username:"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                        <asp:Label ID="displayUsername" runat="server" Text="NIL"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                        <asp:Label ID="StaffID" runat="server" Text="Staff ID:"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                        <asp:Label ID="displayStaffID" runat="server" Text="NIL"></asp:Label>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow Height="10px">
                    <asp:TableCell></asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell Width="150px">
                        <asp:Label ID="Password" runat="server" Text="Password:"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                        <asp:Label ID="displayPassword" runat="server" Text="NIL"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                        <asp:Label ID="Name" runat="server" Text="Name:"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                        <asp:Label ID="displayName" runat="server" Text="NIL"></asp:Label>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow Height="10px">
                    <asp:TableCell></asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell Width="150px">
                        <asp:Label ID="UserType" runat="server" Text="User Type:"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                        <asp:Label ID="displayUserType" runat="server" Text="NIL"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                        <asp:Label ID="DOB" runat="server" Text="Date of Birth (DOB):"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                        <asp:Label ID="displayDOB" runat="server" Text="NIL"></asp:Label>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow Height="10px">
                    <asp:TableCell></asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell Width="150px">
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                        <asp:Label ID="BankNo" runat="server" Text="Bank No:"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                        <asp:Label ID="displayBankNo" runat="server" Text="NIL"></asp:Label>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow Height="10px">
                    <asp:TableCell></asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell Width="150px">
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                        <asp:Label ID="Address" runat="server" Text="Address:"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                        <asp:Label ID="displayAddress" runat="server" Text="NIL"></asp:Label>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow Height="10px">
                    <asp:TableCell></asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell Width="150px">
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                        <asp:Label ID="TelNo" runat="server" Text="Tel No:"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                        <asp:Label ID="displayTelNo" runat="server" Text="NIL"></asp:Label>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow Height="10px">
                    <asp:TableCell></asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell Width="150px">
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                    </asp:TableCell>
                    <asp:TableCell Width="150px">
                        <asp:Label ID="DutyType" runat="server" Text="Duty Type:"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell Width="200px">
                        <asp:Label ID="displayDutyType" runat="server" Text="NIL"></asp:Label>
                    </asp:TableCell>
                </asp:TableRow>
            </asp:Table>
        </div>

        <div style="margin-top: 20px; margin-bottom: 20px">
            <hr />
        </div>

        <div id="Button" style="margin-top: 20px; margin-bottom: 20px; margin-right: 20%; text-align: right">
            <asp:Button ID="updateBtn" runat="server" Text="Update" Visible="False" OnClick="updateBtn_Click" CssClass="btnGreen" />&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="deleteBtn" runat="server" Text="Delete" Visible="False" OnClick="deleteBtn_Click" CssClass="btnRed" OnClientClick="return confirm('Are you sure you want to delete?')" />
        </div>
    </div>
</asp:Content>
